package cn.tedu.design;


/*
* 本类用于设计老师类，要求面向抽象编程
* 后天向上抽取形成的结果*/
public class DesignTeahcer1 {
    public static void main(String[] args) {
        CGBTeacher ct=new CGBTeacher();
        ct.ready();
        ct.teach();
        ACTTeacher at=new ACTTeacher();
        at.ready();
        at.teach();
    }
}
abstract class Teacher{
    int id;
    String name;

     public abstract void ready();
     public abstract void teach();
}
class CGBTeacher extends Teacher {

    @Override
    public void ready() {
        System.out.println("正在备课。。。电商");
    }

    @Override
    public void teach() {
        System.out.println("正在讲课。。。电商");
    }
}
class ACTTeacher extends Teacher{

    @Override
    public void ready() {
        System.out.println("正在备课。。。加强");
    }

    @Override
    public void teach() {
        System.out.println("正在讲课。。。加强");
    }
}
class SCDTeacher extends Teacher{

    @Override
    public void ready() {
        System.out.println("正在备课。。。框架");
    }

    @Override
    public void teach() {
        System.out.println("正在讲课。。。框架");
    }
}
